import axios from 'axios';
import service from '~/axios'

export function login(username, password) {
	return service.post("/admin/login", {
		username,
		password
	});
}

export function getinfo() {
	return service.post("admin/getinfo")
}

export function logout() {
	return service.post("admin/logout")
}

export function updatepassword(data) {
	return service.post("admin/updatepassword",data)
}